﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OnlineShop;

namespace TestShopProgram
{
    class Program
    {
        static void Main(string[] args)
        {
          
            ////Create instances of two shops.
            //Shop myShop = new Shop("Amethyst",0);
            //Shop anotherShop = new Shop("Ruby", 0);

            ////Create some products.
            //AudioProduct audioOne = new AudioProduct("Beatles");
            //VideoProduct videoOne = new VideoProduct("Aliens");
            //AudioProduct audioTwo = new AudioProduct("Kisss");
            //VideoProduct videoTwo = new VideoProduct("Gozila");
            //AudioProduct audio3 = new AudioProduct("U2");

            ////Stock each shop with some products.
            //myShop.stock.AddProductToStock(audioOne, 5);
            //myShop.stock.AddProductToStock(videoOne, 10);
            //anotherShop.stock.AddProductToStock(audioOne, 7);
            //anotherShop.stock.AddProductToStock(videoOne, 5);
            //anotherShop.stock.AddProductToStock(audioTwo,12);
            //anotherShop.stock.AddProductToStock(videoTwo,8);

            ////Display current turnover in each shop.
            //Console.WriteLine(myShop.ToString());
            //Console.WriteLine("===============================");
            //Console.WriteLine(anotherShop.ToString());
            //Console.WriteLine();

            ////Display surrent stock in each shop.
            //myShop.DisplayStock();
            //Console.WriteLine("===============================");
            //anotherShop.DisplayStock();

            ////Sell some products.
            //myShop.MakeSale(audioOne,5,2);
            //myShop.MakeSale(videoOne, 3, 5);
            //anotherShop.MakeSale(audioTwo, 10,4);
            //anotherShop.MakeSale(videoTwo, 5,6);

            ////Display current turnover in each shop.
            //Console.WriteLine(myShop.ToString());
            //Console.WriteLine("===============================");
            //Console.WriteLine(anotherShop.ToString());
            //Console.WriteLine();

            ////Display surrent stock in each shop.
            //myShop.DisplayStock();
            //Console.WriteLine("===============================");
            //anotherShop.DisplayStock();
        }
    }
}
